In abstract algebra, a magma (or groupoid; not to be confused with groupoids in category theory) is a basic kind of algebraic structure. Specifically, a magma consists of a set M equipped with a single binary operation M × M → M. A binary operation is closed by definition, but no other axioms are imposed on the operation.
The term magma for this kind of structure was introduced by Nicolas Bourbaki. The term groupoid is an older, but still commonly used alternative which was introduced by Øystein Ore.
Contents |
A magma is a set M matched with an operation "•" that sends any two elements to another element a • b. The symbol "•" is a general placeholder for a properly defined operation. To qualify as a magma, the set and operation (M, •) must satisfy the following requirement (known as the magma axiom):
For all a, b in M, the result of the operation a • b is also in M.
In French, the word "magma" has multiple common meanings, one of them being "jumble". It is likely that the French Bourbaki group referred to sets with well-defined binary operations as magmas with the "jumble" definition in mind.
Magmas are not often studied as such; instead there are several different kinds of magmas, depending on what axioms one might require of the operation. Commonly studied types of magmas include
A morphism of magmas is a function mapping magma to magma , that preserves the binary operation:
where and denote the binary operation on and respectively.
For the general, non-associative case, the magma operation may be repeatedly iterated. To denote pairings, parentheses are used. The resulting string consists of symbols denoting elements of the magma, and balanced sets of parenthesis. The set of all possible strings of balanced parenthesis is called the Dyck language. The total number of different ways of writing n applications of the magma operator is given by the Catalan number . Thus, for example, , which is just the statement that and are the only two ways of pairing three elements of a magma with two operations.
A shorthand is often used to reduce the number of parentheses. This is accomplished by using juxtaposition in place of the operation. For example, if the magma operation is *, then xy*z abbreviates (x * y) * z. Further abbreviations are possible by inserting spaces, for example by writing xy*z * wv in place of ((x * y) * z) * (w * v). Of course, for more complex expressions the use of parenthesis turns out to be inevitable. A way to avoid completely the use of parentheses is prefix notation.
A free magma on a set X is the "most general possible" magma generated by the set X (that is there are no relations or axioms imposed on the generators; see free object). It can be described, in terms familiar in computer science, as the magma of binary trees with leaves labeled by elements of X. The operation is that of joining trees at the root. It therefore has a foundational role in syntax.
A free magma has the universal property such that, if is a function from the set X to any magma N, then there is a unique extension of to a morphism of magmas
See also: free semigroup, free group, Hall set
Group-like structures | ||||
Totality | Associativity | Identity | Inverses | |
---|---|---|---|---|
Group | Yes | Yes | Yes | Yes |
Monoid | Yes | Yes | Yes | No |
Semigroup | Yes | Yes | No | No |
Loop | Yes | No | Yes | Yes |
Quasigroup | Yes | No | No | Yes |
Magma | Yes | No | No | No |
Groupoid | No | Yes | Yes | Yes |
Category | No | Yes | Yes | No |
A magma (S, *) is called
If is instead a partial operation, then S is called a partial magma.
See n-ary group.